<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form action="javascript:">
	<input type="radio" name="radioCandidat" id="radioCandidatConnu"/> Candidat connu
	<input type="radio" name="radioCandidat" id="radioCandidatInconnu"/> Nouveau candidat
</form>	
<form action="">
	<fieldset id="candidatConnu" style="display: none;">
		<legend>Candidat connu</legend>
	</fieldset>
	<fieldset id="candidatInconnu" style="display: none;">
		<legend>Candidat pas connu</legend>
	</fieldset>
</form>

<script>
window.onload = function() {
	document.getElementById("radioCandidatConnu").onclick = function(event) {
		document.getElementById("candidatConnu").style.display = "block";
		document.getElementById("candidatInconnu").style.display = "none";
	}
	document.getElementById("radioCandidatInconnu").onclick = function(event) {
		document.getElementById("candidatConnu").style.display = "none";
		document.getElementById("candidatInconnu").style.display = "block";
	}
}
</script>
</body>
</html>